const mongoose = require('mongoose');
const adminModel = require('./adminModel');


const serviceSchema = new mongoose.Schema({
    name: String,   //服务名字
    type: String,   //服务类型
    price: String,  //价格
    describe: String, //服务描述
    //获取门店管理员的信息
    adminId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: adminModel
    }

})
module.exports = mongoose.model('serviceModel', serviceSchema, 'service');